package com.huawei.fastengine.fastview.download.utils.log;

import android.util.Log;

public class FastViewLogUtils {
    private static final String TAG = "FastSDK";
    private static int nativeLogLevel = 7;

    public static void d(String str) {
        d("", str);
    }

    public static void d(String str, String str2) {
        if (nativeLogLevel <= 3) {
            Log.d(TAG, "[" + str + "]" + str2);
        }
    }

    public static void e(String str) {
        e("", str);
    }

    public static void e(String str, String str2) {
        if (nativeLogLevel <= 6) {
            Log.e(TAG, "[" + str + "]" + str2);
        }
    }

    public static void i(String str) {
        i("", str);
    }

    public static void i(String str, String str2) {
        if (nativeLogLevel <= 4) {
            Log.i(TAG, "[" + str + "]" + str2);
        }
    }

    public static void setNativeLogLevel(int i) {
        nativeLogLevel = i;
    }

    public static void w(String str) {
        w("", str);
    }

    public static void w(String str, String str2) {
        if (nativeLogLevel <= 5) {
            Log.w(TAG, "[" + str + "]" + str2);
        }
    }
}
